from app.models import Base

from sqlalchemy import Column, Integer, String, \
    Text, ForeignKey, DateTime, UniqueConstraint, \
        Index, Boolean, SmallInteger, BigInteger, Date
from sqlalchemy.orm import relationship
from datetime import datetime



class Role(Base):
    id = Column(Integer, primary_key=True)
    name = Column(String(100), unique=True)
    auth = Column(SmallInteger)
    auths = Column(String(600))    

    users = relationship("User", backref='role')
    admins = relationship("Admin", backref='role')
